package huachenxing.mimi520.main
{
	import com.cambright.lotusroot.CommandMap;
	import com.cambright.lotusroot.Module;
	
	import huachenxing.mimi520.main.commands.AlertCommand;
	import huachenxing.mimi520.main.commands.DockApplicationCommand;
	import huachenxing.mimi520.main.handlers.AlertHandler;
	import huachenxing.mimi520.main.handlers.DockApplicationHandler;
	import huachenxing.mimi520.main.widgets.DockWidget;
	
	public class Module extends com.cambright.lotusroot.Module
	{
		public var dock:DockWidget;
		
		override public function get commandMap():CommandMap
		{
			var map:CommandMap = new CommandMap();
			map.add(DockApplicationCommand, DockApplicationHandler);
			map.add(AlertCommand, AlertHandler);
			return map;
		}
		
		override protected function initialize():void
		{
			dock = pushWidget(DockWidget);
		}
		
		override public function get mainCommand():Class
		{
			return DockApplicationCommand;
		}
	}
}


